package com.czy.designPatterns.装饰者模式;

/**
 * 装饰类
 */
public class Decorator{
    private Decorator decorator;
    public void decoratorObj(Decorator decorator){
        this.decorator = decorator;
    }


    public void show() {
        if(decorator != null){
            decorator.show();
        }
    }
}
